﻿package vsg.util {
	
	public final class StringUtils {
		
		public static function replaceAll(str:String , orginal:String, replacePattern:String):String {
			var $temp:String = str.replace(orginal,replacePattern);
			var $oriValue:String = str.toString();
			while ($temp != $oriValue) {
				$oriValue = $temp;
				$temp = $oriValue.replace(orginal,replacePattern);
			}
			return $temp;
		}
		
	}
}